package com.ruoyi.app.service.impl;

import com.ruoyi.app.domain.AppActivities;
import com.ruoyi.app.mapper.AppActivitiesMapper;
import com.ruoyi.app.service.IAppActivitiesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 活动管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-04
 */
@Service
public class AppActivitiesServiceImpl implements IAppActivitiesService
{
    @Autowired
    private AppActivitiesMapper appActivitiesMapper;

    /**
     * 查询活动管理
     * 
     * @param id 活动管理主键
     * @return 活动管理
     */
    @Override
    public AppActivities selectAppActivitiesById(Long id)
    {
        return appActivitiesMapper.selectAppActivitiesById(id);
    }

    /**
     * 查询活动管理列表
     * 
     * @param appActivities 活动管理
     * @return 活动管理
     */
    @Override
    public List<AppActivities> selectAppActivitiesList(AppActivities appActivities)
    {
        return appActivitiesMapper.selectAppActivitiesList(appActivities);
    }

    /**
     * 新增活动管理
     * 
     * @param appActivities 活动管理
     * @return 结果
     */
    @Override
    public int insertAppActivities(AppActivities appActivities)
    {
        return appActivitiesMapper.insertAppActivities(appActivities);
    }

    /**
     * 修改活动管理
     * 
     * @param appActivities 活动管理
     * @return 结果
     */
    @Override
    public int updateAppActivities(AppActivities appActivities)
    {
        return appActivitiesMapper.updateAppActivities(appActivities);
    }

    /**
     * 批量删除活动管理
     * 
     * @param ids 需要删除的活动管理主键
     * @return 结果
     */
    @Override
    public int deleteAppActivitiesByIds(Long[] ids)
    {
        return appActivitiesMapper.deleteAppActivitiesByIds(ids);
    }

    /**
     * 删除活动管理信息
     * 
     * @param id 活动管理主键
     * @return 结果
     */
    @Override
    public int deleteAppActivitiesById(Long id)
    {
        return appActivitiesMapper.deleteAppActivitiesById(id);
    }
}
